<template>
  <div class="cut-list">
    <div class="cut-item" v-for="(item,index) in cutList" :key="index">
      <div>
        <img v-bind:src="item.pic" />
      </div>
      <div>
        <p v-html="item.name"></p>
        <p>{{item.characteristic}}</p>
        <div class="cut-price">
          <div>
            <p>¥{{item.minPrice}}</p>
            <p>低价</p>
          </div>
          <div>
            <p>¥{{item.originalPrice}}</p>
            <p>原价</p>
          </div>
          <div>
            <p>{{item.stores}}件</p>
            <p>限量</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "",
  props:["cutList"],
  data() {
    return {};
  },
  //生命周期 - 创建完成（访问当前this实例）
  created() {},
  //生命周期 - 挂载完成（访问DOM元素）
  mounted() {}
};
</script>
<style scoped lang="scss">
#cut {
  width: 100%;
  background: #fff; //背景颜色
  margin-top: 0.25rem; //距离上面0.25rem
  .cut-hade {
    line-height: 0.88rem;
    text-align: center; //居中
    font-size: 0.35rem;
    border-bottom: #dddddd 1px solid; //下划线
  }
  .cut-list {
    width: 100%;
    padding: 0.2rem;
    box-sizing: border-box; //块级的盒子模型
    .cut-item {
      width: 100%;
      display: flex;
      border-bottom: #dddddd 1px solid; //下划线
      div:nth-of-type(1) {
        width: 40%;
        img {
          width: 100%;
        }
      }
      div:nth-of-type(2) {
        width: 65%;
        margin-left: 5%;
        p:nth-of-type(1) {
          line-height: 0.65rem;
          font-size: 0.35rem;
        }
        p:nth-of-type(2) {
          line-height: 0.6rem;
          font-size: 0.25rem;
          color: #505050;
        }
        .cut-price {
          width: 100%;
          display: flex;
          margin-top: 0.3rem;
          div {
            width: 30%;
            text-align: center;
          }
        }
      }
    }
  }
}
</style>